<?php

declare(strict_types=1);
/**
 * This file is part of Sws.
 *
 * @link     https://gitee.com/sreeb/sws-dev.git
 * @document https://gitee.com/sreeb/sws-dev.git
 * @contact  https://gitee.com/sreeb/sws-dev.git
 * @license  https://gitee.com/sreeb/sws-dev/blob/master/LICENSE
 */
namespace app\controllers;

class Index
{
    public function index(\Swoole\Http\Request $request, \Swoole\Http\Response $response): string
    {
        return 'hello sws!';
    }

    public function test(\Swoole\Http\Request $request, \Swoole\Http\Response $response, $str)
    {
        return $str;
    }
}
